{% load static %}


{#<p> 存储文件：<span><a href="{% url "saveUploadList" Categoryid=0 %}" style="font-size: 13px;">   查看更多..</a></span></p>#}
{#<ul id="listFileUL">#}
{#    {% for item in fileListQuery %}#}
{#        <li id="item{{ item.id }}">#}
{#            <div style="display: inline-block;width:30px;height:30px;"><img style="width: auto;height: 100%" src="{% static "admin/img/shouhui1-icons.svg" %}">#}
{#            </div>#}
{#            <span><a style="" rel="{% url "media" item.file %}"#}
{#                     href="{% url "media" item.file %}">{{ item }}  ：更新时间：{{ item.date }} </a></span>#}
{#            <span><button style="background-color: yellow"><a style="" rel="{% url "media" item.file %}"#}
{#                                                              href="{% url "media" item.file %}"#}
{#                                                              download>下载</a></button></span>#}
{#            {% if user.username %}#}
{#            <span style=" margin-left: 15px" id="delButton{{ item.id }}"><input type="button" id="btnajax{{ item.id }}"#}
{#                                                                                value="删除"/></span>#}
{#            {% endif %}#}
{#        </li>#}
{#        <script>#}
{#            $(function () {#}
{#                $('#btnajax{{ item.id }}').click(function () {#}
{#                    //请求参数#}
{#                    var list = {};#}
{#                    //#}
{#                    $.ajax({#}
{#                        type: "POST",#}
{#                        //请求的媒体类型#}
{#                        contentType: "application/json;charset=UTF-8",#}
{#                        //请求地址#}
{#                        url: "{% url 'delsaveUploadList' item.id%}",#}
{#                        //数据，json字符串#}
{#                        data: JSON.stringify(list),#}
{#                        //请求成功#}
{#                        success: function (result) {#}
{#                            console.log(result);#}
{#                            $("#item{{ item.id }}").remove();#}
{#                        },#}
{#                        //请求失败，包含具体的错误信息#}
{#                        error: function (e) {#}
{#                            console.log(e.status);#}
{#                            console.log(e.responseText);#}
{#                        }#}
{#                    });#}
{#                });#}
{#            })#}
{##}
{#        </script>#}
{#    {% endfor %}#}
{#</ul>#}
